home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / zcpp_jae.zip / MAKEFILE.ZTC < prev    next >
Text File  |  1992-07-14  |  2KB  |  94 lines

  1. # ------------------------------------------------------------------------
  2. # This is a makefile custom tailored to make the Texas Instruments' CPP
  3. # processor for DOS using Zortech tools.
  4. #
  5. # Guy C. Gallant, 27Apr91
  6. # J. Alan Eldridge 07/14/92 added stuff for protected mode, dependency
  7. #                               of template.c on cppdef.h
  8. # ------------------------------------------------------------------------
  9.  
  10. CC = ztc
  11.  
  12. # use this one for 32 bit protected mode
  13. #CFLAGS = -mx -o -p -DCOOL -DMSDOS -DVOID_SUPPORT -DOK_STDC=0
  14.  
  15. CFLAGS = -mli -o -p -DCOOL -DMSDOS -DVOID_SUPPORT -DOK_STDC=0
  16.  
  17. OBJS = cpp1.obj cpp2.obj cpp3.obj cpp4.obj cpp5.obj cpp6.obj cpp7.obj \
  18.        defmacio.obj hash.obj defpacka.obj parmtype.obj macro.obj \
  19.        member.obj class.obj template.obj exceptio.obj generate.obj compress.obj
  20.  
  21.  
  22. # Rules
  23. # -----
  24. .c.obj:
  25.     $(CC) -c $(CFLAGS) $<
  26.  
  27.  
  28. # The primary target.
  29. # -------------------
  30. # use this one for 32 bit with X32 extender
  31. #cpp.exe: $(OBJS) cpp.rsp
  32. #    $(CC) -o$@ $(CFLAGS) @cpp.rsp x32v.lib
  33. cpp.exe: $(OBJS) cpp.rsp
  34.     $(CC) -o$@ $(CFLAGS) @cpp.rsp
  35.  
  36.  
  37. # How to create rsp file.
  38. # -----------------------
  39. cpp.rsp: makefile.ztc
  40.     @echo cpp1.obj cpp2.obj cpp3.obj cpp4.obj cpp5.obj >cpp.rsp
  41.     @echo cpp6.obj cpp7.obj defmacio.obj hash.obj defpacka.obj >>cpp.rsp
  42.     @echo parmtype.obj macro.obj member.obj class.obj template.obj >>cpp.rsp
  43.     @echo exceptio.obj generate.obj compress.obj >>cpp.rsp
  44.  
  45.  
  46. #
  47. # ** Remove unneeded files
  48. #
  49.  
  50. clean:
  51.     -del *.obj
  52.  
  53. #
  54. # Object module dependencies
  55. #
  56.  
  57. cpp1.obj  :    cpp1.c cpp.h cppdef.h
  58.  
  59. cpp2.obj  :    cpp2.c cpp.h cppdef.h
  60.  
  61. cpp3.obj  :    cpp3.c cpp.h cppdef.h
  62.  
  63. cpp4.obj  :    cpp4.c cpp.h cppdef.h
  64.  
  65. cpp5.obj  :    cpp5.c cpp.h cppdef.h
  66.  
  67. cpp6.obj  :    cpp6.c cpp.h cppdef.h
  68.  
  69. cpp7.obj  :    cpp7.c cpp.h cppdef.h
  70.  
  71. defmacio.obj :    defmacio.c defmacio.h
  72.  
  73. parmtype.obj :    parmtype.c defmacio.h
  74.  
  75. macro.obj :    macro.c macro.h defmacio.h
  76.  
  77. defpacka.obj :  defpacka.c defmacio.h
  78.  
  79. hash.obj :    hash.c
  80.  
  81. issame.obj :    issame.c defmacio.h
  82.  
  83. member.obj :    member.c defmacio.h
  84.  
  85. class.obj :    class.c defmacio.h
  86.  
  87. template.obj :    template.c defmacio.h cppdef.h
  88.  
  89. exceptio.obj :    exceptio.c macro.h defmacio.h
  90.  
  91. generate.obj :    generate.c macro.h defmacio.h
  92.  
  93. compress.obj :    compress.c defmacio.h
  94.